package com.wechat.face;

import java.net.URL;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 表情的图文信息
 * 
 * @author 618lf
 */
@Getter
@Setter
@Accessors(chain = true)
@ToString
public class Face {

	private String cg;
	private String key;
	private URL realPath;
	private URL showPath;
	private String text;
	private double width;
	private double height;
	private double imageWidth;
	private double imageHeight;

	public String Index() {
		return cg + Faces.Face_Split + key;
	}

	public String Encode() {
		return Faces.Face_Mark + this.Index() + Faces.Face_Mark;
	}
}
